package io.github.cocoa.module.socket.controller.admin.sample.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * 示例信息 导入 Response VO
 *
 * @author James
 */
@Schema(description = "示例信息 导入 Response VO")
@Data
@Builder
public class SampleInfoImportRespVO {

    @Schema(description = "创建成功的示例信息数组", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<Long> createSamples;

    @Schema(description = "更新成功的示例信息数组", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<Long> updateSamples;

    @Schema(description = "导入失败的示例信息集合，key 为示例信息主键，value 为失败原因", requiredMode = Schema.RequiredMode.REQUIRED)
    private Map<Long, String> failureSamples;

}
